<% include ../../../public/components/page-header/index %>


<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content" style="margin-left:0;">
            <!-- BEGIN PAGE HEADER-->
            <!-- BEGIN PAGE HEAD -->
            <div class="page-head">
                <!-- BEGIN PAGE TITLE -->
                <div class="page-title">
                    <h1>编辑内容 <small>编辑用户关注的内容</small></h1>
                </div>
                <!-- END PAGE TITLE -->
            </div>
            <!-- END PAGE HEAD -->
            <% include ../../../public/components/page-breadcrumb/index %>
            <!-- END PAGE HEADER-->
            
            <!-- BEGIN PAGE CONTENT-->
            <div class="portlet light">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-gift"></i>表单
                    </div>
                </div>
                <div class="portlet-body form">
                    <!-- BEGIN FORM-->
                    <form action="/keywords" method="post" class="form-horizontal">
                        <input type="hidden" name="id" value="<%= data.doc._id %>">
                        <div class="form-body">
                            <div class="form-group">
                                <label class="col-md-3 control-label">名称</label>
                                <div class="col-md-4">
                                    <input type="text" name="title" class="form-control" placeholder="请输入名称" value="<%= data.doc.title %>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">别名</label>
                                <div class="col-md-4">
                                    <input type="text" name="nicks" class="form-control tags" placeholder="清输入别名" value="<%= data.doc.nicks.join(',') %>">
                                    <span class="help-block">可输入多个别名 </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">描述</label>
                                <div class="col-md-4">
                                    <textarea name="decription" rows="3" class="form-control" value="<%= data.doc.description %>"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-offset-3 col-md-9">
                                    <button type="submit" class="btn blue">提交</button>
                                    <a href="/keywords" type="button" class="btn default">取消</a>
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
</div>
<!-- END CONTAINER -->